package com.sichen.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 商品的二级分类VO
 * <p>Created with IntelliJ IDEA.
 * <p>Author: 思尘
 * <p>Created time: 2022-09-13 21:21
 * <p>Version: V1.0
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Catelog2Vo {

    private String catalog1Id;

    private List<Catelog3Vo> catalog3List; //三级子分类

    private String id;

    private String name;


    /**
     * 三级分类VO
     */
    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class Catelog3Vo{
        private String catalog2Id; //父类 , 2级分类id
        private String id;
        private String name;
    }
}
